Expand description
lemmeknow can be used for identifying mysterious text or to analyze hard-coded strings from captured network packets, malwares, or just about anything.
Usage
If you want to use it as a library and do not want to pretty print output as table
then set default-features=false
in your Cargo.toml
:
[dependencies]
lemmeknow = { version = "0.7", default-features = false }
OR by using github repository:
[dependencies]
lemmeknow = { git = "https://github.com/swanandx/lemmeknow", default-features = false }
Example:
Let us say we want to identify a text and then get the output as pretty JSON
use lemmeknow::Identifier;
let identifier = Identifier::default();
let result = identifier.identify("UC11L3JDgDQMyH8iolKkVZ4w");
let result_in_json = Identifier::to_json(&result);
println!("{result_in_json}");
If you want to work with bytes, i.e. [u8]
use bytes::Identifier
use lemmeknow::bytes::Identifier;
let identifier = Identifier::default();
let result = identifier.identify(b"UC11L3JDgDQMyH8iolKkVZ4w");
let result_in_json = Identifier::to_json(&result);
println!("{result_in_json}");
Re-exports
pub use self::identifier::bytes;
pub use self::identifier::Identifier;
pub use self::identifier::Match;
pub use self::output::PrintMode;
Modules
For identifying text / analyzing files
For pretty printing the output to terminal.
Structs
structure for parsing data from JSON file.